package router

import (
	"longmen/server/internal/api"

	"github.com/labstack/echo/v4"
)

func initGameRoute(group *echo.Group, base api.Controller, authFunc echo.MiddlewareFunc) {
	group.POST("/game/list", base.GameList)
	group.POST("/game/stages", base.Stages)
	group.POST("/game/signin", base.Signin, authFunc)
	group.POST("/game/signin_stage", base.SigninStage, authFunc)
	group.POST("/game/signin_history", base.SigninHitory, authFunc)
	group.POST("/game/signin_test", base.SigninTest, authFunc)
	group.POST("/game/fruit_game_action", base.FruitGameAction, authFunc)
	group.POST("/game/fruit_game_config", base.FruitGameConfig, authFunc)
	group.POST("/game/dice_game_action", base.DiceGameAction, authFunc)
	group.POST("/game/dice_game_history", base.DiceGameHistory, authFunc)
}
